<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib uri="http://displaytag.sf.net" prefix="display"%>
<%@ taglib prefix="sx" uri="/struts-dojo-tags" %>
<head>
	<sx:head cache="false" />
	<link rel="stylesheet" href="/hrs-intranet/styles/displaytag.css" type="text/css" />
	<link rel="stylesheet" href="/hrs-intranet/styles/errortag.css" type="text/css" />
	<script type="text/javascript" src="/hrs-intranet/custom/js/calendarFix.js"></script>
</head>

	<h3>General Time Off Report</h3>

<s:if test="hasFieldErrors()">
	<div class="oldErrorMsg">
		<h4 class="oldErrorTitle">Error(s) with submission:</h4>
		<s:iterator value="fieldErrors">
			<s:iterator value="value">
				<li>
					<font class="errorMsgFont">
						<s:property/>
					</font>
				</li>
			</s:iterator>
		</s:iterator>
	</div>
	<br/>
	<br/>
</s:if>

		<s:form cssClass="formClass">
			 <sx:autocompleter
				list="employeeList"
		        listValue="person.name"
		        searchType="startword"
		        listKey="id"
		        showDownArrow="false"
		        keyName="selectedEmployeeId"
		        label="Employee" 
        		
			 />
			 <sx:autocompleter 
				list="allTimeOffTypes" 
				listValue="name"
				keyName="selectedTimeOffType" 
				listKey="id"
				label="Time Off Type"
				showDownArrow="false"
				searchType="startword"
				
			 />
			<sx:autocompleter
				list="allStatuses"
				label="Status"
				showDownArrow="false"
				searchType="startword"
				name="selectedStatus"
        	
			/>
			<sx:datetimepicker name="selectedDateFrom" label="Date From" displayFormat="dd/MM/yyyy" valueNotifyTopics="/value"/>
			<sx:datetimepicker name="selectedDateTo" label="Date To" displayFormat="dd/MM/yyyy" valueNotifyTopics="/value"/>
			 
			 <s:hidden key="reportName" value="General Time Off Report"/>
			 	<s:submit action="GeneralTimeOffReportAction" method="exportToPDF" value="Export To PDF"  cssClass="btnLarge"/>
			 	<s:submit action="GeneralTimeOffReportAction" method="exportToExcel" value="Export To Excel" cssClass="btnLarge"/>
		</s:form>
		
		